home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Application / WindowEventHandler.cp < prev    next >
Text File  |  2000-06-23  |  774b  |  38 lines

  1. // WindowEventHandler.cp
  2.  
  3. #ifndef WindowEventHandler_h
  4. #include "WindowEventHandler.h"
  5. #endif
  6. #ifndef AbstractWindow_h
  7. #include "AbstractWindow.h"
  8. #endif
  9. #ifndef UserState_h
  10. #include "UserState.h"
  11. #endif
  12. #ifndef ActivateEvent_h
  13. #include "ActivateEvent.h"
  14. #endif
  15. #ifndef DeactivateEvent_h
  16. #include "DeactivateEvent.h"
  17. #endif
  18. #ifndef UpdateEvent_h
  19. #include "UpdateEvent.h"
  20. #endif
  21.  
  22. void WindowEventHandler::HandleActivateEvent( const ActivateEvent& event )
  23.   {
  24.     event.Window().Activate();
  25.     UserState::The().Announce();
  26.   }
  27.  
  28. void WindowEventHandler::HandleDeactivateEvent( const DeactivateEvent& event )
  29.   {
  30.     event.Window().Deactivate();
  31.     UserState::The().Announce();
  32.   }
  33.  
  34. void WindowEventHandler::HandleUpdateEvent( const UpdateEvent& event )
  35.   {
  36.     event.Window().Update();
  37.   }
  38.